/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-19 20:39:11
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-19 20:39:14
 * @别瞎看: 你个无脑牛马
 */

// Floater 类
class Floater extends Employee {
    private int hoursWorked;
    private static final double HOURLY_RATE = 50.0;

    public Floater(String name, String gender, String birthDate, int hoursWorked) {
        super(name, gender, birthDate, "Floater");
        this.hoursWorked = hoursWorked;
    }

    public double calculateSalary() {
        return hoursWorked * HOURLY_RATE;
    }
}